static void *mkshort_wr_handle;
static char *dbname = NULL;
+static char *appendicon = NULL;
static
arglist_t cetus_args[] = {
{"dbname", &dbname, "Database name", ARGTYPE_STRING },
+ {"appendicon", &appendicon, "Append icon_descr to description.",
+ ARGTYPE_BOOL },
{0, 0, 0, 0 }
};
else {
vdata[0] ='\0';
}
+ if (appendicon && wpt->icon_descr) {
+ int left = 500 - strlen( vdata );
+ int ilen = strlen( wpt->icon_descr );
+ if (ilen && left > (ilen+3)) {
+ strcat( vdata, " (" );
+ strcat( vdata, wpt->icon_descr );
+ strcat( vdata, ")" );
+ }
+ }
vdata += strlen( vdata ) + 1;
if ( wpt->notes ) {
- strncpy( vdata, wpt->notes, 501 );
- vdata[500] = '\0';
+ /* RER note: this doesn't seem to be viewable in Cetus 1.2b2 */
+ strncpy( vdata, wpt->notes, 501 );
+ vdata[500] = '\0';
}
else {
- vdata[0] ='\0';
+ vdata[0] ='\0';
}
vdata += strlen( vdata ) + 1;
typedef struct {
queue Q;
position position;
+
+ /*
+ * The "thickness" of a waypoint; adds an element of 3D. Can be
+ * used to construct rudimentary polygons for, say, airspace
+ * definitions.
+ */
+ double depth;
+
+ /*
+ * An alarm trigger value that can be considered to be a circle
+ * surrounding a waypoint (or cylinder if depth is also defined)
+ */
+ double proximity;
+
/* shortname is a waypoint name as stored in receiver. It should
* strive to be, well, short, and unique. Enforcing length and
* character restrictions is the job of the output. A typical